package com.wjb.xietong.server.topic;

import java.util.HashMap;
import java.util.Map;

import com.wjb.xietong.server.IRequestParam;
import com.wjb.xietong.util.IDs;

/**
 * 
 * 获取点赞联系人列表请求参数
 */
public class GetZanPeopleListParam implements IRequestParam {

	private long topicId = 0l;
	private long userId = 0l;
	private long companyId = 0l;
	private int pageNo = 0;//从1开始
	private int pageSize = 0;

	@Override
	public Map<String, String> parseData2Map() {
		Map<String, String> map = new HashMap<String, String>();
		put(map, IDs.M, IDs.MOBILE_ZAN_PEOPLE);
		put(map, IDs.TOPIC_ID, getTopicId());
		put(map, IDs.USER_ID, getUserId());
		put(map, IDs.COM_ID, getCompanyId());
		put(map, IDs.PAGE_NO, getPageNo());
		put(map, IDs.PAGE_SIZE, getPageSize());
		return map;
	}

	private void put(Map<String, String> map, String key, long value) {
		put(map, key, String.valueOf(value));
	}

	private void put(Map<String, String> map, String key, int value) {
		put(map, key, String.valueOf(value));
	}

	private void put(Map<String, String> map, String key, String value) {
		if (null == key || null == value) {
			return;
		}
		map.put(key, value);
	}

	public long getTopicId() {
		return topicId;
	}

	public void setTopicId(long topicId) {
		this.topicId = topicId;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public long getCompanyId() {
		return companyId;
	}

	public void setCompanyId(long companyId) {
		this.companyId = companyId;
	}

	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

}
